package org.langqiao.string;

public class StringSplit {
	
	public static void main(String[] args){
		String str = "java.is.funny.www.crazyit.org";
		String[] strArr = str.split("\\.");
		System.out.println(strArr.length);
		for(String s : strArr){
			System.out.println(s);
		}
		
		
		 String str1 = "a,b,c,,"; 
		 String[] ary = str1.split(","); //预期大于 3，结果是 3 
		 System.out.println(ary.length); 
	}
}
